﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShuiPingHengGL.aspx.cs" Inherits="Web.Pages.YongShui.ShuiPingHGL.ShuiPingHengGL" Theme="Default" %>
<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../../../../JS/AddEditCancel.js"></script>
    <script type="text/javascript">
      
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="tabletitle1" align="center">
            水平衡管理
        </div>
        <asp:UpdatePanel ID="updatePanel1" runat="server">
            <ContentTemplate>
                <div class="top" style="width: 100%; margin: auto;">
                    <fieldset style="border: 1px solid  cornflowerblue; width: 97%; margin: auto;">
                        <legend style="font-weight: bold">查询条件</legend>
                        <table>
                            <tr>
                                <td>用户号：</td>
                                <td>
                                    <dx:ASPxTextBox ID="txtYongHuH" ClientInstanceName="txtconYM" runat="server" Width="80px">
                                       
                                    </dx:ASPxTextBox>
                                </td>
                                <td>用户名：</td>
                                <td>
                                    <dx:ASPxTextBox ID="txtYongHuM" ClientInstanceName="txtconYM" runat="server" Width="160px">
                                       
                                    </dx:ASPxTextBox>
                                </td>
                                <td>地址：</td>
                                <td>
                                    <td>

                                        <dx:ASPxTextBox ID="YongHuAddress" ClientInstanceName="txtconYM" runat="server" Width="160px">
                                         
                                        </dx:ASPxTextBox>
                                    </td>
                                </td>
                                <td>
                                    <dx:ASPxButton ID="btnSearch" runat="server" Text="查询" UseSubmitBehavior="false" OnClick="btnSearch_Click">
                                    </dx:ASPxButton>
                                </td>
                            </tr>
                        </table>

                    </fieldset>
                </div>

                <div style="height: 3px"></div>

                <fieldset style="border: 1px solid  cornflowerblue; width: 97%; margin: auto;">
                    <legend style="font-weight: bold">查询结果</legend>
                    <div style="width:100%">
                    <dx:ASPxGridView ID="gvShuiPingHengGL" ClientInstanceName="gvList" runat="server" AutoGenerateColumns="False" KeyFieldName="ID" Theme="Aqua1" Width="100%">
                        <Columns>
                            <dx:GridViewDataTextColumn FieldName="NO" Caption="序号" Width="40px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户号" Width="70px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="120px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="S_DIZHI" Caption="地址" Width="120px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="I_ZONGGAIXMS" Caption="总改项目数" Width="100px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="I_YIWANCHENGXMS" Caption="已完成项目数" Width="90px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="N_ZONGTOUZIJE" Caption="总投资金额(万元)" Width="120px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="N_JIESHUIL" Caption="节水量（m³/d）" Width="120px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="N_DULOUL" Caption="堵漏量（m³/d）" Width="120px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="N_DULOUXM" Caption="堵漏项目数" Width="120px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="N_DULOUTZJE" Caption="堵漏投资金额(万元)" Width="130px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="N_GUANJIN" Caption="管径(mm)" Width="120px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="N_XINSHUIL" Caption="新水量（m³/d）" Width="120px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="D_BEIANRQ" Caption="备案日期" Width="120px" PropertiesTextEdit-DisplayFormatString="yyyy-MM-dd">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Width="35px">
                                    <DataItemTemplate>
                                        <asp:LinkButton ID="lnbModify" runat="server" CausesValidation="false" Text="修改"
                                            CommandArgument='<%#Eval("ID")%>' OnCommand="lnbModify_Command"></asp:LinkButton>
                                    </DataItemTemplate>
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Width="35px">
                                    <DataItemTemplate>
                                        <asp:LinkButton 
                                            ID="lnbDel" runat="server" CausesValidation="false" Text="删除" OnClientClick="return confirm('你确定要删除吗？')"
                                             CommandArgument='<%#Eval("ID")%>' OnCommand="lnbDel_Command"></asp:LinkButton>
                                    </DataItemTemplate>
                            </dx:GridViewDataTextColumn>
                        </Columns>
                        <ClientSideEvents Init="function(s,e){AdjustSize(350,gvList);}"/>
                        <Settings  VerticalScrollBarMode="Auto" HorizontalScrollBarMode="Auto" />
                    </dx:ASPxGridView>
                    </div>
                </fieldset>

                <div style="text-align: right">
                    <hr />
                    <dx:ASPxButton ID="btnAdd" runat="server" Text="添加"  OnClick="btnAdd_Click" UseSubmitBehavior="false">
                      
                    </dx:ASPxButton>
                </div>
                <div style="height: 3px;"></div>
                <div id="GridViewContentTable" runat="server">
                    <div class="tabletitle1" align="center">
                        <asp:Label runat="server" ID="lblOperateTip">添加</asp:Label>
                    </div>
                    <table style="width: 100%">
                        <tr>
                            <td align="right">用户号：
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="txtuserNo" runat="server" Width="60px">
                                     <ClientSideEvents KeyPress="function(s,e){var key = event.keyCode;
                                                                if( key==13){$('#txtuserNoButton').click();}}" />
                                </dx:ASPxTextBox>
                                 <div style="display: none">
                                                            <dx:ASPxButton ID="txtuserNoButton" runat="server" Text="ASPxButton" OnClick="txtuserNoButton_Click"></dx:ASPxButton>
                                                        </div>
                            </td>
                            <td colspan="10"></td>
                        </tr>
                        <tr>
                            <td align="right">用户名：
                            </td>
                            <td colspan="5">
                                <dx:ASPxTextBox ID="txtuserName" runat="server" Width="98.5%"></dx:ASPxTextBox>
                            </td>
                            <td align="right">地址：
                            </td>
                            <td colspan="5">
                                <dx:ASPxTextBox ID="txtAddress" runat="server" Width="98%"></dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="width: 10%">总改项目数：
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="txtzonggaiXMS" runat="server" Style="width: 100%; text-align: right"></dx:ASPxTextBox>
                            </td>
                            <td style="width:5%"></td>
                            <td align="right" style="width: 10%">已完成项目数：
                            </td>
                            <td>
                                <dx:ASPxTextBox runat="server" ID="txtYiWanChengXMS" type="text" Style="width: 100%; text-align: right"></dx:ASPxTextBox>
                            </td>
                            <td></td>
                            <td align="right" style="width: 10%">总投资金额：
                            </td>
                            <td>
                                <dx:ASPxTextBox runat="server" ID="txtZongTouZiJE" type="text" Style="width: 100%; text-align: right"></dx:ASPxTextBox>
                            </td>
                            <td style="width:5%">
                                <asp:Label ID="Label7" runat="server" Text="（万元）" Font-Size="Smaller"></asp:Label>
                            </td>
                            <td align="right" style="width:7%">节水量：
                            </td>
                            <td>
                                <dx:ASPxTextBox runat="server" ID="txtJieShuiLiang" type="text" Style="width: 100%; text-align: right"></dx:ASPxTextBox>
                            </td>
                            <td style="width:5%">
                                <asp:Label ID="Label1" runat="server" Text="（m³/d）" Font-Size="Smaller"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">堵漏量：
                            </td>
                            <td>
                                <dx:ASPxTextBox runat="server" ID="txtDuLouL" type="text" Style="width: 100%; text-align: right"></dx:ASPxTextBox>
                            </td>
                            <td>
                                <asp:Label ID="Label3" runat="server" Text="（m³/d）" Font-Size="Smaller"></asp:Label>
                            </td>
                            <td align="right">堵漏项目数：
                            </td>
                            <td>
                                <dx:ASPxTextBox runat="server" ID="txtDuLouXMS" type="text" Style="width: 100%; text-align: right"></dx:ASPxTextBox>
                            </td>
                            <td></td>
                            <td align="right">堵漏投资金额：
                            </td>
                            <td>
                                <dx:ASPxTextBox runat="server" ID="txtDLouTouZiJE" type="text" Style="width: 100%; text-align: right"></dx:ASPxTextBox>
                            </td>
                            <td>
                                <asp:Label ID="Label4" runat="server" Text="（万元）" Font-Size="Smaller"></asp:Label>
                            </td>
                            <td align="right">管径：
                            </td>
                            <td>
                                <dx:ASPxTextBox runat="server" ID="txtGuanJin" type="text" Style="width: 100%; text-align: right"></dx:ASPxTextBox>
                            </td>
                            <td>
                                <asp:Label ID="Label5" runat="server" Text="（mm）" Font-Size="Smaller"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">新水量：
                            </td>
                            <td>
                                <dx:ASPxTextBox runat="server" ID="txtXinShuiLiang" type="text" Style="width: 100%; text-align: right"></dx:ASPxTextBox>
                            </td>
                            <td>
                                <asp:Label ID="Label6" runat="server" Text="（m³/d）" Font-Size="Smaller"></asp:Label>
                            </td>
                            <td align="right">水平衡类型：
                            </td>
                            <td>

                                <dx:ASPxComboBox runat="server" ID="cmbshuipinghenglx" Width="100%">                                   
                                </dx:ASPxComboBox>

                            </td>
                            <td></td>
                            <td align="right">备案日期：
                            </td>
                            <td>
                                <dx:ASPxDateEdit ID="txtbeianRQ" runat="server" Width="100%" AllowNull="false">
                                </dx:ASPxDateEdit>
                            </td>
                            <td></td>
                            <td colspan="3">
                                <dx:ASPxCheckBox ID="cbGuoQi" runat="server" Text="已过期">
                                </dx:ASPxCheckBox>
                            </td>
                        </tr>
                    </table>
                    <hr />
                    <div style="border: 0px red solid;">
                        <table style="width: 100%;">
                            <tr>
                                <td align="right">

                                    <hr />
                                    <dx:ASPxButton ID="btnSave" runat="server" Text="保存" UseSubmitBehavior="false" OnClick="btnSave_Click">
                                       
                                    </dx:ASPxButton>
                                    <dx:ASPxButton ID="btnCancel" runat="server" Text="放弃" UseSubmitBehavior="false" OnClick="btnCancel_Click">
                                       
                                    </dx:ASPxButton>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>

            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>


